import { Application } from "egg";
import helper from "./helper";

export default (app: Application) => {
  const { controller, router } = app;
  helper.registRestfulRoute(controller.v1.user, router, "/auth-api/v1", "users");

  router.get("/security/login", controller.security.login);
  router.post("/security/login", controller.security.login);
  // router.redirect("/", "/ui");
};
